package cn.fjc920.siaa.activitys

import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import cn.fjc920.siaa.R
import cn.fjc920.siaa.activityutils.BaseActivity
import kotlinx.android.synthetic.main.activity_opinion.*
import kotlinx.android.synthetic.main.activity_update.*

class OpinionActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_opinion)

        init()
        initClick()
    }

    private fun init(){
        setSupportActionBar(findViewById(R.id.opinion_toolbar))
        supportActionBar!!.setDisplayHomeAsUpEnabled(true)
    }
    private fun initClick() {
        opinion_toolbar.setNavigationOnClickListener {
            finish()
        }
    }

   companion object{
       fun actionStart(context: Context){
           val intent = Intent(context,OpinionActivity::class.java)
           context.startActivity(intent)
       }
   }
}